package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IEmployeeService {
    void insert(Employee employee, Long[] roleIds);

    void delete(Long id);

    void update(Employee employee, Long[] roleIds);

    Employee get(Long id);

    List<Employee> selectAll();

    PageInfo<Employee> query(QueryObject qo);

    Employee checkEmp(String username, String password);

    List<Permission> selectPermissions(Long employeeId);

    Workbook exportXls();

    void importXls(MultipartFile file);
}
